<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>

<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
	<meta charset="utf-8" />
	<title><?php echo ($webtitle); ?>－管理后台</title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta content="width=device-width, initial-scale=1.0" name="viewport" />
	<meta content="" name="description" />
	<meta content="" name="author" />
	   <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Bootstrap -->
 
	<!-- BEGIN GLOBAL MANDATORY STYLES -->          
	
	<link href="/Public/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
	<link href="/Public/css/admin.css" rel="stylesheet" type="text/css"/>
	<link href="/Public/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
	<!-- END GLOBAL MANDATORY STYLES -->
	<!-- BEGIN THEME STYLES --> 
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="/Public/js/html5shiv.min.js"></script>
        <script src="/Public/js/respond.min.js"></script>
    <![endif]-->
	<!-- END THEME STYLES -->
	
	    <script src="/Public/js/jquery.js"></script>
    <script src="/Public/js/bootstrap.min.js"></script> 
	
 <script src="/Public/js/sco.ajax.js"></script> 

	
</head>
<!-- BEGIN BODY -->
<body>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>网站管理系统-后台</title>
<link rel="stylesheet" type="text/css" href="/Public/Static/css/global.css" /><link rel="stylesheet" type="text/css" href="/Public/Static/css/bootstrap.min.css" /><link rel="stylesheet" type="text/css" href="/Public/Admin/Default/css/style.css" />
<script type="text/javascript">
  var GV = {
    JS_VERSION : '20130702',                      //js版本号(不能带空格)
    REGION_CONFIG : '',
    JS_ROOT       : './Public/Static/js/dev/',
    URL : {
      REGION : "index.php?app=home&ac=api&c=area",
      SCHOOL : "index.php?app=home&ac=api&c=school",                //学校数据
      EMOTIONS : "index.php?app=home&ac=api&c=emotions",
    },
  }
</script>
<script type="text/javascript" src="/Public/Static/js/jquery.js"></script><script type="text/javascript" src="/Public/Static/js/core.js"></script><script type="text/javascript" src="/Public/Static/js/global.js"></script><script type="text/javascript" src="/Public/Static/js/config.js"></script><script type="text/javascript" src="/Public/Static/js/common.js"></script>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script type="text/javascript" src="/Public/Static/js/respond.src.js"></script><script type="text/javascript" src="/Public/Static/js/html5.js"></script>
<link rel="stylesheet" type="text/css" href="/Public/Static/css/bootstrap-ie78.css" />
<![endif]-->
</head>
<body>
<div class="container-fluid">

<?php if(!empty($top_nav)): ?><ul class="nav nav-tabs">
    <?php if(is_array($top_nav)): $i = 0; $__LIST__ = $top_nav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i; if($vo['right'] == '1'): ?><span class=" pull-right" style="padding-right:5px;"><a class="btn btn-primary" href="<?php echo ($vo['url']); ?>"><?php echo ($vo['name']); ?></a> </span>
    <?php else: ?>
    <li class="<?php if(in_array(ACTION_NAME,$vo['tab'])): ?>active<?php endif; ?>"><a href="<?php echo ($vo['url']); ?>"><?php echo ($vo['name']); ?></a></li><?php endif; endforeach; endif; else: echo "" ;endif; ?>
  </ul><?php endif; ?>

<div class=" container " style="margin-top:60px">

<div class="row">
  <div class=" col-lg-2 col-md-2 col-xs-12">
	 
	 <ul class="list-group list-unstyled">

 <li class=""> <a href="" class="list-group-item active" > <i class="fa fa fa-gear"></i> 基本设置 </a></li>

  <li class=""> <a href="<?php echo U('Config/index/');?>" class="list-group-item"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;网站信息 </a></li>
  
 <li class=""> <a href="<?php echo U('Member/shoporder/');?>" class="list-group-item active"> <i class="fa fa-list-ul"></i> 外卖管理 </a></li>
<li class=""> <a href="<?php echo U('Member/shoporder/');?>" class="list-group-item"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;外卖订单 </a></li>
<li class=""> <a href="<?php echo U('Foodcat/index/');?>" class="list-group-item"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;商品分类</a></li>
<li class=""> <a href="<?php echo U('Food/index/');?>" class="list-group-item"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;商品管理</a></li>
 
 
  <li class=""> <a href="<?php echo U('Articlecate/index/');?>" class="list-group-item active"> <i class="fa fa-calendar"></i> 文章模块</a> </li>
  
<?php if(is_array($leftlist)): $i = 0; $__LIST__ = $leftlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li class=""> <a href="<?php echo U('Article/alist/','id='.$vo['acid']);?>" class="list-group-item"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo ($vo["aname"]); ?> </a></li><?php endforeach; endif; else: echo "" ;endif; ?>


  
 
  <li class=""> <a href="<?php echo U('Page/index/');?>" class="list-group-item active"> <i class="fa fa-list-ul"></i> 单页模块 </a></li>
 <?php if(is_array($pageslist)): $i = 0; $__LIST__ = $pageslist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li class=""> <a href="<?php echo U('Page/edit/','id='.$vo['pagid']);?>" class="list-group-item"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo ($vo["page_title"]); ?> </a></li><?php endforeach; endif; else: echo "" ;endif; ?>


 
</ul> 
	 
	
	 </div>
	  <div class="col-lg-10 col-md-10 col-xs-12" style="background-color: #FFF;">


	  







		<blockquote>
  <p>订单管理</p>
</blockquote>
		
         <table class="table ta">
        <thead>
          <tr>
            <th>订单号</th>
           
            <th>下单时间</th>
            <th>订单金额</th>
			<th>订单状态</th>
			<th>结束时间</th>
			<th>操作</th>
          </tr>
        </thead>
        <tbody>
		<?php if(is_array($shoporderlist)): $i = 0; $__LIST__ = $shoporderlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
            <td><?php echo ($vo["oid"]); ?></td>
            
            <td><?php echo (date("Y-m-d H:i",$vo["order_ctime"])); ?></td>
            <td><?php echo ($vo["orderprice"]); ?></td>
			<td><?php switch($vo["orderstatus"]): case "4": ?>已完成<?php break;?>
													<?php case "5": ?>送货中<?php break;?>
                                                    <?php default: ?> 提交成功<?php endswitch;?></td>
            <td><?php if(empty($vo["order_endtime"])): else: ?> <?php echo (date("Y-m-d H:i",$vo["order_endtime"])); endif; ?></td>
			<td>
			<a href="<?php echo U('Member/orderdetail/','id='.$vo['oid']);?>" data-target="#ajax_target" data-trigger="ajax">查看</a>
			&nbsp;&nbsp;<?php switch($vo["orderstatus"]): case "4": break;?>
			<?php default: ?> <a href="<?php echo U('Member/orderend/','id='.$vo['oid']);?>" >出单</a><?php endswitch;?>
			
			</td>
           
          </tr><?php endforeach; endif; else: echo "" ;endif; ?>
     
        </tbody>
      </table>
	   
	  
      
	    <div class="row">
					  <div class="col-md-7 col-sm-12">
					  </div>
					  <div class="col-md-5 col-sm-12">
					          

                              <ul class="pagination pull-right">
							    <?php echo ($page); ?>
                                
                             </ul>


					  </div>
					  
					  
					  </div>
			 
		
			 
			 
			 
			 
			 	  <div id="ajax_target">
			  
			  	
				
			  </div>
			 
			 
			 
			
			 
			 
			 
			 
			 </div>
			 </div>

    
</div><!-- end container -->



	



</body>
<!-- END BODY -->
</html>